<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
  <head>
    <base href="<%=basePath%>" />
	<title>Heat User of Building List</title>
	<script type="text/javascript">
		var path = "<%=basePath%>";
	</script>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>beshs/css/content.css" />
	<script type="text/javascript" src="<%=basePath%>resources/jquery/jquery-1.7.2.min.js"></script>
	<!-- 页面特效 -->
	<jsp:include page="/beshs/res-refer/page-effect-reference.jsp" />
	<!-- 系统通用资源 -->
	<jsp:include page="/resources/resource-refer/common-resource-reference.jsp" />
  </head>
	<script type="text/javascript">
		function showRoomDetail(heatRoomUID) {
	  		top.window.frames["c_content_content"].location = path + "beshs/heatRoomAction!queryHeatRoomDetailInfo.do?heatRoomUID=" + heatRoomUID+"&date=" + new Date();
	  	}
	</script>
  <body>
	<div class="content_all">
	  	<!--查询列表-->
	  	<div class="search_table_all">
	    	<table class="search_table" cellspacing="0" cellpadding="0">
	      		<thead>
	        		<tr>
		          		<th style="width:50px;">Serial No.</th>
			          	<th>Apartment Number</th>
			          	<th>Owner Name</th>
			          	<th>Heating Area</th>
			          	<th>Contact Method</th>
			          	<th>Whether Involved in Metering and Charging</th>
			          	<th>Operation</th>
	        		</tr>
	      		</thead>
	      		<tbody>
	      			<s:iterator value="heatRoomList" var="heatRoom" status="status">
	      				<tr>
		          			<td><s:property value="#status.index+1" /></td>
		          			<td><s:property value="#heatRoom.houseNo" /></td>
		          			<td><s:property value="#heatRoom.roomOwner" /></td>
		          			<td>
		          				<s:text name="fmt.number.precision.three">
		          					<s:param value="#heatRoom.heatArea" />
		          				</s:text>	
		          				m&sup2;
		          			</td>
		          			<td><s:property value="#heatRoom.ownerTel" /></td>
		          			<td>
		          				<s:if test="#heatRoom.ifMeasureCharge==1">No</s:if>
		          				<s:if test="#heatRoom.ifMeasureCharge==2">Yes</s:if>
		          			</td>
		          			<td>
		          				<a href="javascript:showRoomDetail('<s:property value='#heatRoom.id' />')">[Check]</a>
		          			</td>
		        		</tr>
	      			</s:iterator>
	      		</tbody>
	    	</table>
	  	</div>
	</div>
  </body>
</html>
